package com.example.ythhome.person.service.impl;

import com.example.ythhome.person.dao.HomePersonDao;
import com.example.ythhome.person.entity.HomePersonPo;
import com.example.ythhome.person.service.HomePersonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HomePersonServiceImpl implements HomePersonService {
    @Autowired
    HomePersonDao homePersonDao;


    @Override
    public boolean initPRL(String personNo) {
        return false;
    }

    @Override
    public boolean insert(HomePersonPo homePersonPo) {
        return homePersonDao.insert(homePersonPo);
    }

    @Override
    public List<HomePersonPo> queryAll() {
        return homePersonDao.queryAll();

    }
}
